class basic {
  
   
   public static boolean prime(int num) {
	int p=2;
	for(p=2; p<num-1; p++) {
	if (num%p ==0){
	return false;
	}
	}
	
	return true;
     
   }
   public static void evennos(int n) {
	int i=0;
	for (i=0; i<=n; i++){
	if (i%2==0){
	System.out.println("even numbers are" + i);
	}
        }
   }
   public static void practice(int t){
	int i=0;
	while(i<t) {
	System.out.println("I will practice everyday");
	i++;
	}
   }
 		
   public static int large(int n1, int n2) {
	if(n1>n2)
	return n1;
	else 
	return n2;
   }
   
   public static void oddnos ( int num) {
	int i=1000;
	System.out.println("even numbers are");
	for (i=1000; i<=num; i++){
	if (i%2 !=0){
	System.out.println(i);
	}
        }
   }
   public static boolean leap(int year){
	if((year%4 ==0 && year%100 != 0)||(year%400 ==0))
	return true;
	else
	return false;
   }

   public static boolean isEven(int num) {
	if (num%2 == 0)
	return true;
	else 
	return false;
   }
   
   public static void main (String[] args) {
	
	System.out.println(leap(2015));
	System.out.println(isEven(5));
	System.out.println(large(28,62));
	System.out.println(prime(11));
	practice(10);
	evennos(10);
	oddnos(1009);
}	
}